Find the smallest possible length

visit shbcf.ru